package com.utopia.keyvalue.store;

import com.utopia.keyvalue.utils.Config;

/**
 * @author yanjiaqiang
 * @date 2011-3-22
 * @version $Id: Configure.java 5 2011-03-22 09:23:42Z JiaqiangYan@gmail.com $
 */
public class Configure {

	public static String getDataBaseDir() {
		return Config.getValue("data.dir");
	}

	public static String INDEX_FILE_SUFFIX = ".index";

	public static String DATA_FILE_SUFFIX = ".data";

	public static int getIndexMemorySize() {
		return Config.getIntValue("index.memory.size") * 1024 * 1024;
	}

	public static int getDataMaxSizePerFile() {
		return Config.getIntValue("data.max_size_per_file") * 1024 * 1024;
	}
}
